package util;

import java.io.Serializable;
import java.util.List;

public interface GenericDAO <T , PK extends Serializable> {

	Class getObjectClass();	
	T save(T entity);
	T update(T entity);
	void delete(T entity);
	T get(PK id);
	List<T> getAll();
	List<T> findByExample(final T example);
	List<T> findByExample(final T example, final int first, final int max);
	T findOneByExample(final T example);
}
